package com.bayair.doctor.mvp;

/**
 * Author: tuyrt7
 * Date: 2019/9/28 20:15
 * Description: 管理生命周期
 */
public interface IPresenter<T extends IView> {

    /**
     * 依附生命view
     *
     * @param view
     */
    void attachView(T view);

    /**
     * 分离View
     */
    void detachView();

    /**
     * 判断View是否已经销毁
     *
     * @return
     */
    boolean isViewAttached();
}
